<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>robotide.context.settings</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="robotide-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/robotframework-ride">RIDE</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="robotide-module.html">Package&nbsp;robotide</a> ::
        <a href="robotide.context-module.html">Package&nbsp;context</a> ::
        Module&nbsp;settings
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="robotide.context.settings-module.html">Module robotide.context.settings</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment">#  Copyright 2008-2009 Nokia Siemens Networks Oyj</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment">#  </tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-comment">#  Licensed under the Apache License, Version 2.0 (the "License");</tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-comment">#  you may not use this file except in compliance with the License.</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"><tt class="py-comment">#  You may obtain a copy of the License at</tt> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-comment">#  </tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-comment">#      http://www.apache.org/licenses/LICENSE-2.0</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-comment">#  </tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-comment">#  Unless required by applicable law or agreed to in writing, software</tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-comment">#  distributed under the License is distributed on an "AS IS" BASIS,</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"><tt class="py-comment">#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</tt> </tt>
<a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line"><tt class="py-comment">#  See the License for the specific language governing permissions and</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line"><tt class="py-comment">#  limitations under the License.</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line"> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
<a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">shutil</tt> </tt>
<a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module robotide.context.configobj=robotide.context.configobj-module.html"><a title="robotide.context.configobj" class="py-name" href="#" onclick="return doclink('link-0', 'configobj', 'link-0');">configobj</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Class robotide.context.configobj.ConfigObj=robotide.context.configobj.ConfigObj-class.html"><a title="robotide.context.configobj.ConfigObj" class="py-name" href="#" onclick="return doclink('link-1', 'ConfigObj', 'link-1');">ConfigObj</a></tt><tt class="py-op">,</tt> <tt class="py-name">Section</tt><tt class="py-op">,</tt> <tt id="link-2" class="py-name" targets="Class robotide.context.configobj.UnreprError=robotide.context.configobj.UnreprError-class.html"><a title="robotide.context.configobj.UnreprError" class="py-name" href="#" onclick="return doclink('link-2', 'UnreprError', 'link-2');">UnreprError</a></tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line"> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-3" class="py-name" targets="Package robotide=robotide-module.html"><a title="robotide" class="py-name" href="#" onclick="return doclink('link-3', 'robotide', 'link-3');">robotide</a></tt><tt class="py-op">.</tt><tt id="link-4" class="py-name" targets="Package robotide.context=robotide.context-module.html"><a title="robotide.context" class="py-name" href="#" onclick="return doclink('link-4', 'context', 'link-4');">context</a></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Module robotide.context.platform=robotide.context.platform-module.html"><a title="robotide.context.platform" class="py-name" href="#" onclick="return doclink('link-5', 'platform', 'link-5');">platform</a></tt> <tt class="py-keyword">import</tt> <tt id="link-6" class="py-name" targets="Variable robotide.context.platform.IS_WINDOWS=robotide.context.platform-module.html#IS_WINDOWS,Variable robotide.widgets.list.IS_WINDOWS=robotide.widgets.list-module.html#IS_WINDOWS"><a title="robotide.context.platform.IS_WINDOWS
robotide.widgets.list.IS_WINDOWS" class="py-name" href="#" onclick="return doclink('link-6', 'IS_WINDOWS', 'link-6');">IS_WINDOWS</a></tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line"> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line"> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt id="link-7" class="py-name"><a title="robotide.context.platform.IS_WINDOWS
robotide.widgets.list.IS_WINDOWS" class="py-name" href="#" onclick="return doclink('link-7', 'IS_WINDOWS', 'link-6');">IS_WINDOWS</a></tt><tt class="py-op">:</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">    <tt id="link-8" class="py-name" targets="Variable robotide.context.settings.SETTINGS_DIRECTORY=robotide.context.settings-module.html#SETTINGS_DIRECTORY"><a title="robotide.context.settings.SETTINGS_DIRECTORY" class="py-name" href="#" onclick="return doclink('link-8', 'SETTINGS_DIRECTORY', 'link-8');">SETTINGS_DIRECTORY</a></tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">environ</tt><tt class="py-op">[</tt><tt class="py-string">'APPDATA'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-string">'RobotFramework'</tt><tt class="py-op">)</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line"><tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">    <tt id="link-9" class="py-name"><a title="robotide.context.settings.SETTINGS_DIRECTORY" class="py-name" href="#" onclick="return doclink('link-9', 'SETTINGS_DIRECTORY', 'link-8');">SETTINGS_DIRECTORY</a></tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">expanduser</tt><tt class="py-op">(</tt><tt class="py-string">'~/.robotframework'</tt><tt class="py-op">)</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">exists</tt><tt class="py-op">(</tt><tt id="link-10" class="py-name"><a title="robotide.context.settings.SETTINGS_DIRECTORY" class="py-name" href="#" onclick="return doclink('link-10', 'SETTINGS_DIRECTORY', 'link-8');">SETTINGS_DIRECTORY</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">    <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">mkdir</tt><tt class="py-op">(</tt><tt id="link-11" class="py-name"><a title="robotide.context.settings.SETTINGS_DIRECTORY" class="py-name" href="#" onclick="return doclink('link-11', 'SETTINGS_DIRECTORY', 'link-8');">SETTINGS_DIRECTORY</a></tt><tt class="py-op">)</tt> </tt>
<a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line"> </tt>
<a name="initialize_settings"></a><div id="initialize_settings-def"><a name="L30"></a><tt class="py-lineno"> 30</tt> <a class="py-toggle" href="#" id="initialize_settings-toggle" onclick="return toggle('initialize_settings');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings-module.html#initialize_settings">initialize_settings</a><tt class="py-op">(</tt><tt class="py-param">tool_name</tt><tt class="py-op">,</tt> <tt class="py-param">source_path</tt><tt class="py-op">,</tt> <tt class="py-param">dest_file_name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="initialize_settings-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="initialize_settings-expanded"><a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">    <tt class="py-docstring">""" Creates settings directory and copies or merges the source to there.</tt> </tt>
<a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line"><tt class="py-docstring">    </tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line"><tt class="py-docstring">    In case source already exists, merge is done.</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line"><tt class="py-docstring">    Destination file name is the source_path's file name unless dest_file_name</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line"><tt class="py-docstring">    is given.</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">    <tt class="py-name">settings_dir</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt id="link-12" class="py-name"><a title="robotide.context.settings.SETTINGS_DIRECTORY" class="py-name" href="#" onclick="return doclink('link-12', 'SETTINGS_DIRECTORY', 'link-8');">SETTINGS_DIRECTORY</a></tt><tt class="py-op">,</tt> <tt class="py-name">tool_name</tt><tt class="py-op">)</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">exists</tt><tt class="py-op">(</tt><tt class="py-name">settings_dir</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">mkdir</tt><tt class="py-op">(</tt><tt class="py-name">settings_dir</tt><tt class="py-op">)</tt> </tt>
<a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">dest_file_name</tt><tt class="py-op">:</tt> </tt>
<a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-name">dest_file_name</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">basename</tt><tt class="py-op">(</tt><tt class="py-name">source_path</tt><tt class="py-op">)</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">    <tt class="py-name">settings_path</tt> <tt class="py-op">=</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">settings_dir</tt><tt class="py-op">,</tt> <tt class="py-name">dest_file_name</tt><tt class="py-op">)</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">    <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">exists</tt><tt class="py-op">(</tt><tt class="py-name">settings_path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">        <tt class="py-name">shutil</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Method robotide.editor.clipboard._ClipboardHandler.copy()=robotide.editor.clipboard._ClipboardHandler-class.html#copy,Method robotide.editor.editors.TestCaseEditor.copy()=robotide.editor.editors.TestCaseEditor-class.html#copy,Method robotide.editor.grid.GridEditor.copy()=robotide.editor.grid.GridEditor-class.html#copy"><a title="robotide.editor.clipboard._ClipboardHandler.copy
robotide.editor.editors.TestCaseEditor.copy
robotide.editor.grid.GridEditor.copy" class="py-name" href="#" onclick="return doclink('link-13', 'copy', 'link-13');">copy</a></tt><tt class="py-op">(</tt><tt class="py-name">source_path</tt><tt class="py-op">,</tt> <tt class="py-name">settings_path</tt><tt class="py-op">)</tt> </tt>
<a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">        <tt class="py-name">_merge_settings</tt><tt class="py-op">(</tt><tt class="py-name">source_path</tt><tt class="py-op">,</tt> <tt class="py-name">settings_path</tt><tt class="py-op">)</tt> </tt>
<a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">abspath</tt><tt class="py-op">(</tt><tt class="py-name">settings_path</tt><tt class="py-op">)</tt> </tt>
</div><a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line"> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line"> </tt>
<a name="_merge_settings"></a><div id="_merge_settings-def"><a name="L50"></a><tt class="py-lineno"> 50</tt> <a class="py-toggle" href="#" id="_merge_settings-toggle" onclick="return toggle('_merge_settings');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings-module.html#_merge_settings">_merge_settings</a><tt class="py-op">(</tt><tt class="py-param">default_path</tt><tt class="py-op">,</tt> <tt class="py-param">user_path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_merge_settings-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_merge_settings-expanded"><a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">    <tt id="link-14" class="py-name" targets="Module robotide.context.settings=robotide.context.settings-module.html,Variable robotide.controller.macrocontrollers.TestCaseController.settings=robotide.controller.macrocontrollers.TestCaseController-class.html#settings,Variable robotide.controller.macrocontrollers.UserKeywordController.settings=robotide.controller.macrocontrollers.UserKeywordController-class.html#settings"><a title="robotide.context.settings
robotide.controller.macrocontrollers.TestCaseController.settings
robotide.controller.macrocontrollers.UserKeywordController.settings" class="py-name" href="#" onclick="return doclink('link-14', 'settings', 'link-14');">settings</a></tt> <tt class="py-op">=</tt> <tt id="link-15" class="py-name"><a title="robotide.context.configobj.ConfigObj" class="py-name" href="#" onclick="return doclink('link-15', 'ConfigObj', 'link-1');">ConfigObj</a></tt><tt class="py-op">(</tt><tt class="py-name">default_path</tt><tt class="py-op">,</tt> <tt class="py-name">unrepr</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">        <tt id="link-16" class="py-name"><a title="robotide.context.settings
robotide.controller.macrocontrollers.TestCaseController.settings
robotide.controller.macrocontrollers.UserKeywordController.settings" class="py-name" href="#" onclick="return doclink('link-16', 'settings', 'link-14');">settings</a></tt><tt class="py-op">.</tt><tt class="py-name">merge</tt><tt class="py-op">(</tt><tt id="link-17" class="py-name"><a title="robotide.context.configobj.ConfigObj" class="py-name" href="#" onclick="return doclink('link-17', 'ConfigObj', 'link-1');">ConfigObj</a></tt><tt class="py-op">(</tt><tt class="py-name">user_path</tt><tt class="py-op">,</tt> <tt class="py-name">unrepr</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">    <tt class="py-keyword">except</tt> <tt id="link-18" class="py-name"><a title="robotide.context.configobj.UnreprError" class="py-name" href="#" onclick="return doclink('link-18', 'UnreprError', 'link-2');">UnreprError</a></tt><tt class="py-op">,</tt> <tt class="py-name">err</tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-keyword">raise</tt> <tt id="link-19" class="py-name" targets="Class robotide.context.settings.ConfigurationError=robotide.context.settings.ConfigurationError-class.html"><a title="robotide.context.settings.ConfigurationError" class="py-name" href="#" onclick="return doclink('link-19', 'ConfigurationError', 'link-19');">ConfigurationError</a></tt><tt class="py-op">(</tt><tt class="py-string">"Invalid config file '%s': %s"</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt><tt class="py-name">user_path</tt><tt class="py-op">,</tt> <tt class="py-name">err</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">    <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">        <tt class="py-name">f</tt> <tt class="py-op">=</tt> <tt class="py-name">open</tt><tt class="py-op">(</tt><tt class="py-name">user_path</tt><tt class="py-op">,</tt> <tt class="py-string">'wb'</tt><tt class="py-op">)</tt> </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">        <tt id="link-20" class="py-name"><a title="robotide.context.settings
robotide.controller.macrocontrollers.TestCaseController.settings
robotide.controller.macrocontrollers.UserKeywordController.settings" class="py-name" href="#" onclick="return doclink('link-20', 'settings', 'link-14');">settings</a></tt><tt class="py-op">.</tt><tt id="link-21" class="py-name" targets="Method robotide.context.configobj.ConfigObj.write()=robotide.context.configobj.ConfigObj-class.html#write,Method robotide.contrib.testrunner.asyncproc.Process.write()=robotide.contrib.testrunner.asyncproc.Process-class.html#write"><a title="robotide.context.configobj.ConfigObj.write
robotide.contrib.testrunner.asyncproc.Process.write" class="py-name" href="#" onclick="return doclink('link-21', 'write', 'link-21');">write</a></tt><tt class="py-op">(</tt><tt class="py-name">f</tt><tt class="py-op">)</tt> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">    <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-name">f</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name" targets="Method robotide.contrib.testrunner.SocketListener.SocketListener.close()=robotide.contrib.testrunner.SocketListener.SocketListener-class.html#close,Method robotide.editor.editors.ResourceFileEditor.close()=robotide.editor.editors.ResourceFileEditor-class.html#close,Method robotide.editor.editors.SettingEditor.close()=robotide.editor.editors.SettingEditor-class.html#close,Method robotide.editor.editors.Settings.close()=robotide.editor.editors.Settings-class.html#close,Method robotide.editor.editors.TagsEditor.close()=robotide.editor.editors.TagsEditor-class.html#close,Method robotide.editor.editors.TestCaseEditor.close()=robotide.editor.editors.TestCaseEditor-class.html#close,Method robotide.editor.editors.VariablesListEditor.close()=robotide.editor.editors.VariablesListEditor-class.html#close,Method robotide.editor.editors.WelcomePage.close()=robotide.editor.editors.WelcomePage-class.html#close,Method robotide.editor.gridcolorizer.Colorizer.close()=robotide.editor.gridcolorizer.Colorizer-class.html#close,Method robotide.editor.kweditor.KeywordEditor.close()=robotide.editor.kweditor.KeywordEditor-class.html#close,Method robotide.editor.tags.TagBox.close()=robotide.editor.tags.TagBox-class.html#close,Method robotide.editor.tags.TagsDisplay.close()=robotide.editor.tags.TagsDisplay-class.html#close,Method robotide.utils.components.RideHtmlWindow.close()=robotide.utils.components.RideHtmlWindow-class.html#close,Method robotide.writer.writer.HtmlFileWriter.close()=robotide.writer.writer.HtmlFileWriter-class.html#close"><a title="robotide.contrib.testrunner.SocketListener.SocketListener.close
robotide.editor.editors.ResourceFileEditor.close
robotide.editor.editors.SettingEditor.close
robotide.editor.editors.Settings.close
robotide.editor.editors.TagsEditor.close
robotide.editor.editors.TestCaseEditor.close
robotide.editor.editors.VariablesListEditor.close
robotide.editor.editors.WelcomePage.close
robotide.editor.gridcolorizer.Colorizer.close
robotide.editor.kweditor.KeywordEditor.close
robotide.editor.tags.TagBox.close
robotide.editor.tags.TagsDisplay.close
robotide.utils.components.RideHtmlWindow.close
robotide.writer.writer.HtmlFileWriter.close" class="py-name" href="#" onclick="return doclink('link-22', 'close', 'link-22');">close</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line"> </tt>
<a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line"> </tt>
<a name="SectionError"></a><div id="SectionError-def"><a name="L63"></a><tt class="py-lineno"> 63</tt> <a class="py-toggle" href="#" id="SectionError-toggle" onclick="return toggle('SectionError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="robotide.context.settings.SectionError-class.html">SectionError</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SectionError-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="SectionError-expanded"><a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">    <tt class="py-docstring">"""Used when section is tried to replace with normal value or vice versa."""</tt> </tt>
</div><a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line"> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line"> </tt>
<a name="ConfigurationError"></a><div id="ConfigurationError-def"><a name="L67"></a><tt class="py-lineno"> 67</tt> <a class="py-toggle" href="#" id="ConfigurationError-toggle" onclick="return toggle('ConfigurationError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="robotide.context.settings.ConfigurationError-class.html">ConfigurationError</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ConfigurationError-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ConfigurationError-expanded"><a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">    <tt class="py-docstring">"""Used when settings file is invalid"""</tt> </tt>
</div><a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line"> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line"> </tt>
<a name="_Section"></a><div id="_Section-def"><a name="L71"></a><tt class="py-lineno"> 71</tt> <a class="py-toggle" href="#" id="_Section-toggle" onclick="return toggle('_Section');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html">_Section</a><tt class="py-op">:</tt> </tt>
</div><div id="_Section-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="_Section-expanded"><a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line"> </tt>
<a name="_Section.__init__"></a><div id="_Section.__init__-def"><a name="L73"></a><tt class="py-lineno"> 73</tt> <a class="py-toggle" href="#" id="_Section.__init__-toggle" onclick="return toggle('_Section.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">section</tt><tt class="py-op">,</tt> <tt class="py-param">parent</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.__init__-expanded"><a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt> <tt class="py-op">=</tt> <tt class="py-name">section</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_parent</tt> <tt class="py-op">=</tt> <tt id="link-23" class="py-name" targets="Variable robotide.controller.basecontroller.ControllerWithParent.parent=robotide.controller.basecontroller.ControllerWithParent-class.html#parent,Variable robotide.controller.commands.Occurrence.parent=robotide.controller.commands.Occurrence-class.html#parent,Variable robotide.controller.macrocontrollers.ItemNameController.parent=robotide.controller.macrocontrollers.ItemNameController-class.html#parent"><a title="robotide.controller.basecontroller.ControllerWithParent.parent
robotide.controller.commands.Occurrence.parent
robotide.controller.macrocontrollers.ItemNameController.parent" class="py-name" href="#" onclick="return doclink('link-23', 'parent', 'link-23');">parent</a></tt> </tt>
</div><a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"> </tt>
<a name="_Section.save"></a><div id="_Section.save-def"><a name="L77"></a><tt class="py-lineno"> 77</tt> <a class="py-toggle" href="#" id="_Section.save-toggle" onclick="return toggle('_Section.save');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#save">save</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.save-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.save-expanded"><a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_parent</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name" targets="Method robotide.context.settings.Settings.save()=robotide.context.settings.Settings-class.html#save,Method robotide.controller.chiefcontroller.ChiefController.save()=robotide.controller.chiefcontroller.ChiefController-class.html#save,Method robotide.editor.editors.TestCaseEditor.save()=robotide.editor.editors.TestCaseEditor-class.html#save,Method robotide.editor.kweditor.KeywordEditor.save()=robotide.editor.kweditor.KeywordEditor-class.html#save,Method robotide.ui.mainframe.RideFrame.save()=robotide.ui.mainframe.RideFrame-class.html#save"><a title="robotide.context.settings.Settings.save
robotide.controller.chiefcontroller.ChiefController.save
robotide.editor.editors.TestCaseEditor.save
robotide.editor.kweditor.KeywordEditor.save
robotide.ui.mainframe.RideFrame.save" class="py-name" href="#" onclick="return doclink('link-24', 'save', 'link-24');">save</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line"> </tt>
<a name="_Section.__setitem__"></a><div id="_Section.__setitem__-def"><a name="L80"></a><tt class="py-lineno"> 80</tt> <a class="py-toggle" href="#" id="_Section.__setitem__-toggle" onclick="return toggle('_Section.__setitem__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#__setitem__">__setitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.__setitem__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.__setitem__-expanded"><a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">set</tt><tt class="py-op">(</tt><tt id="link-25" class="py-name" targets="Variable robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name=robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode-class.html#name,Variable robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name=robotide.contrib.testrunner.runprofiles.CustomScriptProfile-class.html#name,Variable robotide.contrib.testrunner.runprofiles.PybotProfile.name=robotide.contrib.testrunner.runprofiles.PybotProfile-class.html#name,Variable robotide.controller.settingcontrollers.ImportController.name=robotide.controller.settingcontrollers.ImportController-class.html#name,Variable robotide.controller.settingcontrollers.MetadataController.name=robotide.controller.settingcontrollers.MetadataController-class.html#name,Variable robotide.controller.settingcontrollers.VariableController.name=robotide.controller.settingcontrollers.VariableController-class.html#name,Variable robotide.controller.stepcontrollers.ForLoopStepController.name=robotide.controller.stepcontrollers.ForLoopStepController-class.html#name,Variable robotide.controller.tags.Tag.name=robotide.controller.tags.Tag-class.html#name,Variable robotide.editor.editors.EditorPanel.name=robotide.editor.editors.EditorPanel-class.html#name,Variable robotide.publish.messages.name=robotide.publish.messages-module.html#name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-25', 'name', 'link-25');">name</a></tt><tt class="py-op">,</tt> <tt id="link-26" class="py-name" targets="Variable robotide.controller.settingcontrollers.DocumentationController.value=robotide.controller.settingcontrollers.DocumentationController-class.html#value,Variable robotide.controller.settingcontrollers.MetadataController.value=robotide.controller.settingcontrollers.MetadataController-class.html#value,Variable robotide.controller.settingcontrollers.VariableController.value=robotide.controller.settingcontrollers.VariableController-class.html#value,Variable robotide.editor.tags.TagBox.value=robotide.editor.tags.TagBox-class.html#value"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-26', 'value', 'link-26');">value</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line"> </tt>
<a name="_Section.__getitem__"></a><div id="_Section.__getitem__-def"><a name="L83"></a><tt class="py-lineno"> 83</tt> <a class="py-toggle" href="#" id="_Section.__getitem__-toggle" onclick="return toggle('_Section.__getitem__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#__getitem__">__getitem__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.__getitem__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.__getitem__-expanded"><a name="L84"></a><tt class="py-lineno"> 84</tt>  <tt class="py-line">        <tt id="link-27" class="py-name"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-27', 'value', 'link-26');">value</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">[</tt><tt id="link-28" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-28', 'name', 'link-25');">name</a></tt><tt class="py-op">]</tt> </tt>
<a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-29" class="py-name"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-29', 'value', 'link-26');">value</a></tt><tt class="py-op">,</tt> <tt class="py-name">Section</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">_Section</tt><tt class="py-op">(</tt><tt id="link-30" class="py-name"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-30', 'value', 'link-26');">value</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-31" class="py-name"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-31', 'value', 'link-26');">value</a></tt> </tt>
</div><a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line"> </tt>
<a name="_Section.__iter__"></a><div id="_Section.__iter__-def"><a name="L89"></a><tt class="py-lineno"> 89</tt> <a class="py-toggle" href="#" id="_Section.__iter__-toggle" onclick="return toggle('_Section.__iter__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#__iter__">__iter__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.__iter__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.__iter__-expanded"><a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">iter</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">)</tt> </tt>
</div><a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line"> </tt>
<a name="_Section.__len__"></a><div id="_Section.__len__-def"><a name="L92"></a><tt class="py-lineno"> 92</tt> <a class="py-toggle" href="#" id="_Section.__len__-toggle" onclick="return toggle('_Section.__len__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#__len__">__len__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.__len__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.__len__-expanded"><a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">)</tt> </tt>
</div><a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line"> </tt>
<a name="_Section.iteritems"></a><div id="_Section.iteritems-def"><a name="L95"></a><tt class="py-lineno"> 95</tt> <a class="py-toggle" href="#" id="_Section.iteritems-toggle" onclick="return toggle('_Section.iteritems');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#iteritems">iteritems</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.iteritems-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.iteritems-expanded"><a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt class="py-docstring">'''Returns an iterator over the (key,value) items of the section'''</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">.</tt><tt class="py-name">iteritems</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"> </tt>
<a name="_Section.has_setting"></a><div id="_Section.has_setting-def"><a name="L99"></a><tt class="py-lineno"> 99</tt> <a class="py-toggle" href="#" id="_Section.has_setting-toggle" onclick="return toggle('_Section.has_setting');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#has_setting">has_setting</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.has_setting-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.has_setting-expanded"><a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt id="link-32" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-32', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line"> </tt>
<a name="_Section.get"></a><div id="_Section.get-def"><a name="L102"></a><tt class="py-lineno">102</tt> <a class="py-toggle" href="#" id="_Section.get-toggle" onclick="return toggle('_Section.get');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#get">get</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">default</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.get-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.get-expanded"><a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns specified setting or (automatically set) default."""</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt id="link-33" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-33', 'name', 'link-25');">name</a></tt><tt class="py-op">]</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">KeyError</tt><tt class="py-op">:</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">set</tt><tt class="py-op">(</tt><tt id="link-34" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-34', 'name', 'link-25');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">default</tt><tt class="py-op">)</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">default</tt> </tt>
</div><a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"> </tt>
<a name="_Section.set"></a><div id="_Section.set-def"><a name="L110"></a><tt class="py-lineno">110</tt> <a class="py-toggle" href="#" id="_Section.set-toggle" onclick="return toggle('_Section.set');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#set">set</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">value</tt><tt class="py-op">,</tt> <tt class="py-param">autosave</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-param">override</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.set-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.set-expanded"><a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">        <tt class="py-docstring">"""Sets setting 'name' value to 'value'.</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line"><tt class="py-docstring">        'autosave' can be used to define whether to save or not after values are</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line"><tt class="py-docstring">        changed. 'override' can be used to specify whether to override existing </tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line"><tt class="py-docstring">        value or not. Setting which does not exist is anyway always created.</tt> </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_is_section</tt><tt class="py-op">(</tt><tt id="link-35" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-35', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-36" class="py-name"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-36', 'value', 'link-26');">value</a></tt><tt class="py-op">,</tt> <tt class="py-name">_Section</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-37" class="py-name" targets="Class robotide.context.settings.SectionError=robotide.context.settings.SectionError-class.html"><a title="robotide.context.settings.SectionError" class="py-name" href="#" onclick="return doclink('link-37', 'SectionError', 'link-37');">SectionError</a></tt><tt class="py-op">(</tt><tt class="py-string">"Cannot override section with value."</tt><tt class="py-op">)</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-38" class="py-name"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-38', 'value', 'link-26');">value</a></tt><tt class="py-op">,</tt> <tt class="py-name">_Section</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">override</tt><tt class="py-op">:</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">[</tt><tt id="link-39" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-39', 'name', 'link-25');">name</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">key</tt><tt class="py-op">,</tt> <tt class="py-name">_value</tt> <tt class="py-keyword">in</tt> <tt id="link-40" class="py-name"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-40', 'value', 'link-26');">value</a></tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">[</tt><tt id="link-41" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-41', 'name', 'link-25');">name</a></tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">set</tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">,</tt> <tt class="py-name">_value</tt><tt class="py-op">,</tt> <tt class="py-name">autosave</tt><tt class="py-op">,</tt> <tt class="py-name">override</tt><tt class="py-op">)</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt id="link-42" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-42', 'name', 'link-25');">name</a></tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt> <tt class="py-keyword">or</tt> <tt class="py-name">override</tt><tt class="py-op">:</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">[</tt><tt id="link-43" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-43', 'name', 'link-25');">name</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-44" class="py-name"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-44', 'value', 'link-26');">value</a></tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">autosave</tt><tt class="py-op">:</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-45" class="py-name"><a title="robotide.context.settings.Settings.save
robotide.controller.chiefcontroller.ChiefController.save
robotide.editor.editors.TestCaseEditor.save
robotide.editor.kweditor.KeywordEditor.save
robotide.ui.mainframe.RideFrame.save" class="py-name" href="#" onclick="return doclink('link-45', 'save', 'link-24');">save</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line"> </tt>
<a name="_Section.set_values"></a><div id="_Section.set_values-def"><a name="L129"></a><tt class="py-lineno">129</tt> <a class="py-toggle" href="#" id="_Section.set_values-toggle" onclick="return toggle('_Section.set_values');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#set_values">set_values</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">settings</tt><tt class="py-op">,</tt> <tt class="py-param">autosave</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-param">override</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.set_values-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.set_values-expanded"><a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-docstring">"""Set values from settings. 'settings' needs to be a dictionary.</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"><tt class="py-docstring">        See method set for more info about 'autosave' and 'override'.</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-46" class="py-name"><a title="robotide.context.settings
robotide.controller.macrocontrollers.TestCaseController.settings
robotide.controller.macrocontrollers.UserKeywordController.settings" class="py-name" href="#" onclick="return doclink('link-46', 'settings', 'link-14');">settings</a></tt><tt class="py-op">:</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">key</tt><tt class="py-op">,</tt> <tt id="link-47" class="py-name"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-47', 'value', 'link-26');">value</a></tt> <tt class="py-keyword">in</tt> <tt id="link-48" class="py-name"><a title="robotide.context.settings
robotide.controller.macrocontrollers.TestCaseController.settings
robotide.controller.macrocontrollers.UserKeywordController.settings" class="py-name" href="#" onclick="return doclink('link-48', 'settings', 'link-14');">settings</a></tt><tt class="py-op">.</tt><tt class="py-name">items</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">set</tt><tt class="py-op">(</tt><tt class="py-name">key</tt><tt class="py-op">,</tt> <tt id="link-49" class="py-name"><a title="robotide.controller.settingcontrollers.DocumentationController.value
robotide.controller.settingcontrollers.MetadataController.value
robotide.controller.settingcontrollers.VariableController.value
robotide.editor.tags.TagBox.value" class="py-name" href="#" onclick="return doclink('link-49', 'value', 'link-26');">value</a></tt><tt class="py-op">,</tt> <tt class="py-name">autosave</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">,</tt> <tt class="py-name">override</tt><tt class="py-op">=</tt><tt class="py-name">override</tt><tt class="py-op">)</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">autosave</tt><tt class="py-op">:</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="robotide.context.settings.Settings.save
robotide.controller.chiefcontroller.ChiefController.save
robotide.editor.editors.TestCaseEditor.save
robotide.editor.kweditor.KeywordEditor.save
robotide.ui.mainframe.RideFrame.save" class="py-name" href="#" onclick="return doclink('link-50', 'save', 'link-24');">save</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> </tt>
</div><a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line"> </tt>
<a name="_Section.set_defaults"></a><div id="_Section.set_defaults-def"><a name="L141"></a><tt class="py-lineno">141</tt> <a class="py-toggle" href="#" id="_Section.set_defaults-toggle" onclick="return toggle('_Section.set_defaults');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#set_defaults">set_defaults</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">settings_dict</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">settings</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.set_defaults-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.set_defaults-expanded"><a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">        <tt class="py-docstring">"""Sets defaults based on dict and kwargs, kwargs having precedence."""</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">        <tt class="py-name">settings_dict</tt> <tt class="py-op">=</tt> <tt class="py-name">settings_dict</tt> <tt class="py-keyword">or</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">        <tt class="py-name">settings_dict</tt><tt class="py-op">.</tt><tt id="link-51" class="py-name" targets="Method robotide.namespace.namespace.Namespace.update()=robotide.namespace.namespace.Namespace-class.html#update,Method robotide.run.runanything.RunConfigs.update()=robotide.run.runanything.RunConfigs-class.html#update"><a title="robotide.namespace.namespace.Namespace.update
robotide.run.runanything.RunConfigs.update" class="py-name" href="#" onclick="return doclink('link-51', 'update', 'link-51');">update</a></tt><tt class="py-op">(</tt><tt id="link-52" class="py-name"><a title="robotide.context.settings
robotide.controller.macrocontrollers.TestCaseController.settings
robotide.controller.macrocontrollers.UserKeywordController.settings" class="py-name" href="#" onclick="return doclink('link-52', 'settings', 'link-14');">settings</a></tt><tt class="py-op">)</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">set_values</tt><tt class="py-op">(</tt><tt class="py-name">settings_dict</tt><tt class="py-op">,</tt> <tt class="py-name">override</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt> </tt>
</div><a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line"> </tt>
<a name="_Section.add_section"></a><div id="_Section.add_section-def"><a name="L147"></a><tt class="py-lineno">147</tt> <a class="py-toggle" href="#" id="_Section.add_section-toggle" onclick="return toggle('_Section.add_section');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#add_section">add_section</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-op">**</tt><tt class="py-param">defaults</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section.add_section-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section.add_section-expanded"><a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">        <tt class="py-docstring">"""Creates section or updates existing section with defaults."""</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-53" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-53', 'name', 'link-25');">name</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt> <tt class="py-keyword">and</tt> <tt class="py-keyword">not</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">[</tt><tt id="link-54" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-54', 'name', 'link-25');">name</a></tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">Section</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-55" class="py-name"><a title="robotide.context.settings.SectionError" class="py-name" href="#" onclick="return doclink('link-55', 'SectionError', 'link-37');">SectionError</a></tt><tt class="py-op">(</tt><tt class="py-string">"Cannot override value with section."</tt><tt class="py-op">)</tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-56" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-56', 'name', 'link-25');">name</a></tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">:</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">[</tt><tt id="link-57" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-57', 'name', 'link-25');">name</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt id="link-58" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-58', 'name', 'link-25');">name</a></tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">set_defaults</tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt id="link-59" class="py-name" targets="Variable robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.defaults=robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin-class.html#defaults"><a title="robotide.contrib.testrunner.testrunnerplugin.TestRunnerPlugin.defaults" class="py-name" href="#" onclick="return doclink('link-59', 'defaults', 'link-59');">defaults</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line"> </tt>
<a name="_Section._is_section"></a><div id="_Section._is_section-def"><a name="L155"></a><tt class="py-lineno">155</tt> <a class="py-toggle" href="#" id="_Section._is_section-toggle" onclick="return toggle('_Section._is_section');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings._Section-class.html#_is_section">_is_section</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="_Section._is_section-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="_Section._is_section-expanded"><a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt id="link-60" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-60', 'name', 'link-25');">name</a></tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> \ </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">               <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">[</tt><tt id="link-61" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-61', 'name', 'link-25');">name</a></tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">Section</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line"> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line"> </tt>
<a name="Settings"></a><div id="Settings-def"><a name="L160"></a><tt class="py-lineno">160</tt> <a class="py-toggle" href="#" id="Settings-toggle" onclick="return toggle('Settings');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="robotide.context.settings.Settings-class.html">Settings</a><tt class="py-op">(</tt><tt class="py-base-class">_Section</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Settings-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Settings-expanded"><a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line"> </tt>
<a name="Settings.__init__"></a><div id="Settings.__init__-def"><a name="L162"></a><tt class="py-lineno">162</tt> <a class="py-toggle" href="#" id="Settings.__init__-toggle" onclick="return toggle('Settings.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings.Settings-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">user_path</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Settings.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Settings.__init__-expanded"><a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt> <tt class="py-op">=</tt> <tt id="link-62" class="py-name"><a title="robotide.context.configobj.ConfigObj" class="py-name" href="#" onclick="return doclink('link-62', 'ConfigObj', 'link-1');">ConfigObj</a></tt><tt class="py-op">(</tt><tt class="py-name">user_path</tt><tt class="py-op">,</tt> <tt class="py-name">unrepr</tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt id="link-63" class="py-name"><a title="robotide.context.configobj.UnreprError" class="py-name" href="#" onclick="return doclink('link-63', 'UnreprError', 'link-2');">UnreprError</a></tt><tt class="py-op">,</tt> <tt id="link-64" class="py-name" targets="Method robotide.context.logger.Logger.error()=robotide.context.logger.Logger-class.html#error,Method robotide.ui.progress.ProgressObserver.error()=robotide.ui.progress.ProgressObserver-class.html#error"><a title="robotide.context.logger.Logger.error
robotide.ui.progress.ProgressObserver.error" class="py-name" href="#" onclick="return doclink('link-64', 'error', 'link-64');">error</a></tt><tt class="py-op">:</tt> </tt>
<a name="L166"></a><tt class="py-lineno">166</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt id="link-65" class="py-name"><a title="robotide.context.settings.ConfigurationError" class="py-name" href="#" onclick="return doclink('link-65', 'ConfigurationError', 'link-19');">ConfigurationError</a></tt><tt class="py-op">(</tt><tt id="link-66" class="py-name"><a title="robotide.context.logger.Logger.error
robotide.ui.progress.ProgressObserver.error" class="py-name" href="#" onclick="return doclink('link-66', 'error', 'link-64');">error</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line"> </tt>
<a name="Settings.save"></a><div id="Settings.save-def"><a name="L168"></a><tt class="py-lineno">168</tt> <a class="py-toggle" href="#" id="Settings.save-toggle" onclick="return toggle('Settings.save');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.context.settings.Settings-class.html#save">save</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Settings.save-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Settings.save-expanded"><a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_config_obj</tt><tt class="py-op">.</tt><tt id="link-67" class="py-name"><a title="robotide.context.configobj.ConfigObj.write
robotide.contrib.testrunner.asyncproc.Process.write" class="py-name" href="#" onclick="return doclink('link-67', 'write', 'link-21');">write</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="robotide-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/robotframework-ride">RIDE</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Apr 13 15:09:56 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
